﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WareHouse.Domain;
using WareHouse.Domain.ModelClass;

namespace WareHose.Application.ProductAll.Dto
{
    /// <summary>
    /// 输出
    /// </summary>
    public class ProductOut
    {
        /// <summary>
        /// 产品主键
        /// </summary>

        public string ProductId { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }
        /// <summary>
        /// 厂商编码
        /// </summary>
        public string FacturerCode { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specification { get; set; }
        /// <summary>
        /// 类别
        /// </summary>
        public long ProductTypeId { get; set; }
        /// <summary>
        /// 存储单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 下限
        /// </summary>
        public int MinWarn { get; set; }
        /// <summary>
        /// 上限
        /// </summary>
        public int MaxWarn { get; set; }
        /// <summary>
        /// 包装类型
        /// </summary>
        public string PackType { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        public decimal Weight { get; set; }
        /// <summary>
        /// 默认供应商
        /// </summary>
        public SupplierType Supplier { get; set; }
        /// <summary>
        /// 默认仓库
        /// </summary>
        public long DWareHouse { get; set; }
        /// <summary>
        /// 默认库位
        /// </summary>
        public long DSeat { get; set; }
        /// <summary>
        /// 客户
        /// </summary>
        public long Client { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductTypeName { get; set; }
        public long AddId { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string? AddPerson { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? AddDate { get; set; }
        /// <summary>
        /// 修改人ID
        /// </summary>
        [SugarColumn(IsNullable = true)] 
        public long? UpdId { get; set; }
        /// <summary>
        /// 修改人姓名
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string? UpdPerson { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? UpdDate { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public bool? IsDel { get; set; }
        /// <summary>
        /// 删除人ID
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public long? DelId { get; set; }
        /// <summary>
        /// 删除人姓名
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string? DelPerson { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? DelDate { get; set; }
    }
}
